-- GENERATED SPELL FOR [Stonevault Cave Lurker] --


function spell0_4850(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(8721,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4850', 610, 1)
end

function Sorts_4850(pUnit, Event)
local choix_sorts_4850 = math.random(0, 0)
if choix_sorts_4850 == 0 then
pUnit:RegisterEvent('spell0_4850', 1, 1)
end
end

function mob4850_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4850', math.random(1500, 3000), 1)
end

function mob4850_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4850_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4850_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4850, 1, 'mob4850_Action')
RegisterUnitEvent(4850, 2, 'mob4850_Leave')
RegisterUnitEvent(4850, 3, 'mob4850_Kill')
RegisterUnitEvent(4850, 4, 'mob4850_Die')
